package com.ftg.selflearn.util;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author Guo
 * @date 2022/5/24
 */
public class test1 {


    public static void main(String[] args) {

        char[] qq = new char[5];
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入5个字符");
        String str = scanner.next();
        for (int i = 0;i < str.length();i++){
            qq[i] = str.charAt(i);
        }
        System.out.println(Arrays.toString(qq));
    }
}
